package cn.com.demo.microservice.feign.feignservice;

import cn.com.demo.microservice.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
// 一个ProviderService，对应一个FeignService 接口
@FeignClient(value = "PROVIDER03")
public interface IProvider3Service {
    @GetMapping("/provider/hello/{name}")
    public String hello(@PathVariable("name") String name);
    @PostMapping("/provider/user")
    public User user(@RequestBody User user);
}
